import type { Plugin } from "vue";

export default {
    install: (app) => {
        let modules = import.meta.glob("./*/index.ts", { eager: true });
        Object.keys(modules).forEach((k) => {
            let m: any = modules[k] || {};
            if (m["default"] && typeof m["default"] === "function") {
                m["default"](app);
            }
        });
    },
} as Plugin;
